<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>手风琴图片列表</title>
		<style type="text/css">
			.wrap {
				margin: 50px auto;
				width: 800px;
				display: flex;
			}
			.wrap>div {
				width: 20%;
				overflow: hidden;
				transition: all .8s;
			}
			.wrap:hover div {
				/* flex-basis: 40px; */
				flex:0 1 40px;
			}
			.wrap>div:hover {
				/* flex-basis: 640px; */
				flex:0 1 640px;
			}
		</style>
	</head>
	<body>
		
		<div class="wrap">
			<div><img src="1.jpg" alt=""></div>
			<div><img src="2.jpg" alt=""></div>
			<div><img src="3.jpg" alt=""></div>
			<div><img src="4.jpg" alt=""></div>
			<div><img src="5.jpg" alt=""></div>
		</div>
	</body>
</html>
